Skip to content

Expand returned context output of IP reputation command in IPInfo#43615

Draft
TheL0L wants to merge 10 commits into
masterfrom
syakima/CIAC-15750/ipinfo-expand-returned-context
Draft

Expand returned context output of IP reputation command in IPInfo#43615
TheL0L wants to merge 10 commits into
masterfrom
syakima/CIAC-15750/ipinfo-expand-returned-context

Conversation

@TheL0L
Copy link
Copy Markdown
Contributor

@TheL0L TheL0L commented Mar 21, 2026

Related Issues

fixes: CIAC-15750

Description

Extend the context outputs to include full response.

@TheL0L TheL0L self-assigned this Mar 21, 2026
@TheL0L TheL0L requested a review from kamalq97 March 21, 2026 18:35
@TheL0L TheL0L added python Pull requests that update Python code ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. labels Mar 21, 2026
@content-bot
Copy link
Copy Markdown
Contributor

🤖 AI-Powered Code Review Available

You can leverage AI-powered code review to assist with this PR!

Available Commands:

  • @marketplace-ai-reviewer start review - Initiate a full AI code review
  • @marketplace-ai-reviewer re-review - Incremental review for new commits

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 21, 2026

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/ipinfo/Integrations/ipinfo_v2
   ipinfo_v2.py1023169%35–36, 58, 84–86, 88–89, 99, 122, 157, 211–213, 215–219, 221, 223–224, 226–227, 229–231, 233, 236–238
TOTAL1023169% 

Tests Skipped Failures Errors Time
3 0 💤 0 ❌ 0 🔥 2.107s ⏱️

@marketplace-ai-reviewer marketplace-ai-reviewer removed the ready-for-ai-review The PR is ready for reviewing the PR with the AI Reviewer. label Mar 21, 2026
@marketplace-ai-reviewer
Copy link
Copy Markdown
Contributor

🤖 Analysis started. Please wait for results...

@marketplace-ai-reviewer
Copy link
Copy Markdown
Contributor

🤖 AI Review Disclaimer

This review was generated by an AI-powered tool and may contain inaccuracies. Please be advised, and we extend our sincere apologies for any inconvenience this may cause.

Copy link
Copy Markdown
Contributor

@marketplace-ai-reviewer marketplace-ai-reviewer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution to the IPinfo integration! I've reviewed the updates and have a few suggestions to help align the code with our standards.

Primarily, please avoid dumping the raw API response directly into the context, and ensure that any newly exposed fields are properly documented in the YAML outputs. There are also a couple of minor cleanups needed, such as removing unnecessary # type: ignore comments and slightly adjusting the integration description for a more neutral tone.

Thanks again for your work on this!

Additionally, please address the following file-level notes:

  • Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.py: Update integration YAML with new context outputs.
  • Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.yml: The PR description and Python code indicate that the context outputs have been extended to include the full API response (entry_context = raw_result.copy()). However, these new fields (e.g., city, region, postal, timezone, etc.) are not documented in the YML file's outputs section.

According to XSOAR guidelines, all command outputs must be defined in the YML file with appropriate descriptions. Please add the newly exposed fields to the outputs section of the ip command. If some fields are only available in specific plans, you can note that in their descriptions (similar to how IPinfo.IP.Organization.Name is documented).

@kamalq97 please review and approve the results generated by the AI Reviewer by responding 👍 on this comment.

Comment thread Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.py
Comment thread Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.py
advanced: true
required: false
description: Use the IPinfo.io API to get data about an IP address.
description: 'Use the IPinfo.io API to get data about an IP address. We support all plan types: Lite, Plus, Core, Enterprise. The response from the API will match your plan type.'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider rephrasing "We support all plan types" to a more neutral, professional tone, such as "Supports all plan types".

description: 'Use the IPinfo.io API to get data about an IP address. Supports all plan types: Lite, Plus, Core, Enterprise. The response from the API will match your plan type.'

@kamalq97 kamalq97 changed the title Syakima/CIAC-15750/ipinfo-expand-returned-context Expand returned context output of IP reputation command in IPInfo Mar 22, 2026
@content-bot
Copy link
Copy Markdown
Contributor

Validate summary
The following errors were thrown as a part of this pr: .
If the AG100 validation in the pre-commit GitHub Action fails, the pull request cannot be force-merged.

Verdict: PR can be force merged from validate perspective? ✅

Copy link
Copy Markdown
Contributor

@kamalq97 kamalq97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

Please address all my comments below.

Please consider mentioning multi-tier support in the ..._description.md file of the integration.

Comment thread Packs/ipinfo/Integrations/ipinfo_v2/ipinfo_v2.yml Outdated
Comment thread Packs/ipinfo/Integrations/ipinfo_v2/README.md Outdated
@content-bot
Copy link
Copy Markdown
Contributor

This PR is marked as 'Stale' because it has been open for 30 days with no activity, it will be automatically closed in 15 days if no activity will be done. To reset the counter just remove the 'Stale' label or make changes to update this PR. If you wish this PR will never be marked as 'Stale' add the 'Ignore Stale'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-approved enhancement python Pull requests that update Python code ready-for-pipeline-running Whether the pr is ready for running the whole pipeline, including testing on SAAS machines Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants